﻿using System.ComponentModel.DataAnnotations;

namespace IdentifyTest.Models
{
    public class RegisterViewModel
    {
        [Required(ErrorMessage ="请输入用户名")]
        [Display(Name="用户名")]
        public string UserName { get; set; }

        [Required(ErrorMessage ="请输入密码")]
        [Display(Name ="密码")]
        public string Password { get; set; }


        [Required(ErrorMessage = "请输入邮箱")]
        [Display(Name = "邮箱")]
        [EmailAddress(ErrorMessage ="邮箱格式不正确")]
        public string Email { get; set; }
    }
}
